﻿using ChatGPTIntegrationProject.Service.Interface;

using Microsoft.AspNetCore.Mvc;

namespace ChatGPTIntegrationProject.Controllers.Api.v1
{
    [ApiController]
    public class OpenRouterAIController : ControllerBase
    {
        private IOpenRouter _openRouter;

        public OpenRouterAIController(IOpenRouter openRouter)
        {
            _openRouter = openRouter;
        }

        // GET api/v1/<GptTurboController>/5
        [HttpGet("api/v1/[controller]/GetModelsAsync")]
        public async Task<ActionResult<object>> GetModelsAsync()
        {
           return Ok(await _openRouter.GetModelsAsync());
        }

        // POST api/v1/<GptTurboController>
        [HttpPost("api/v1/[controller]/SendMessageAsync")]
        public async Task  SendMessageAsync([FromBody] string value)
        {
        }
    }
}